(function () {
    'use strict';

    var app = angular.module('DesktopControllers', []);

    app.controller('DesktopController', ['$scope', 'moduleService', 'resolveModules',
        function ($scope, moduleService, resolveModules) {
            $scope.modules = resolveModules;
            $scope.ClickModule = function (module) {
                moduleService.openModule(module);
            };
        }]);
})();